package org.example.myleet.p797;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.JsonUtils;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue("[[0,1,3],[0,2,3]]".equals(JsonUtils.toJson(solution.allPathsSourceTarget(Parser.parse("[[1,2],[3],[3],[]]")))));
        Assert.isTrue("[[0,4],[0,3,4],[0,1,3,4],[0,1,2,3,4],[0,1,4]]".equals(JsonUtils.toJson(solution.allPathsSourceTarget(Parser.parse("[[4,3,1],[3,2,4],[3],[4],[]]")))));
        Assert.isTrue("[[0,1]]".equals(JsonUtils.toJson(solution.allPathsSourceTarget(Parser.parse("[[1],[]]")))));
    }
}
